class Person:
    def __init__(self, name, job=None, pay=0):
        self.name = name
        self.job = job
        self.pay = pay

    def lastName(self):
        return self.name.split()[-1]

    def giveRaise(self, percent):
        self.pay = int(self.pay * (1 + percent))

    def __repr__(self):  # Added method
        return '[Person: %s, %s]' % (self.name, self.pay)  # String to print


class Manager(Person):
    def __init__(self, name, pay=0):
        Person.__init__(self, name, 'mgr', pay)

    def giveRaise(self, percent, bonus=0.1):
        Person.giveRaise(self,  percent+bonus)


if __name__ == '__main__':
    bob = Person('Bob Smith')
    sue = Person('Sue Jones', job='dev', pay=100000)
    sue.giveRaise(0.10)
    print(sue)
    tom = Manager('Tome Jones', 5000)
    tom.giveRaise(0.1)
    print(tom)
